local fenwei_active = fk.CreateSkill {
  name = "#lingling__fenwei_active",
}

Fk:loadTranslationTable{
  ["#lingling__fenwei_active"] = "奋危",
}

fenwei_active:addEffect("active", {
  interaction = function (self, player)
    local all_choices = { "recover", "loseHp" }
    local choices = table.simpleClone(all_choices)
    if not Fk:currentRoom():getPlayerById(self.to):isWounded() then
      table.remove(choices, 1)
    end
    return UI.ComboBox { choices = choices, all_choices = all_choices }
  end,
  card_num = 2,
  target_num = 0,
  card_filter = function (self, player, to_select, selected)
    return #selected < 2 and not player:prohibitDiscard(to_select)
  end,
})

return fenwei_active
